home *** CD-ROM | disk | FTP | other *** search
- global gMenuList, gFullPath, SectionNumber, SectionPath, finalChan
-
- on exitFrame me
- member("SectionTitle").text = "GALLERY"
- p = gMenuList[SectionNumber]
- SectionPath = p.ItemPath
- li = p.ItemList
- lH = 20
- lV = 100
- offs = 20
- myTitle = "GALLERY"
- pLine = 1
- repeat with i = 1 to the number of castMembers of castLib "SubItems"
- if member(i, "subItems").name contains myTitle then
- channel(finalChan + pLine).removeScriptedSprite()
- channel(finalChan + pLine).makeScriptedSprite(member(i, "subItems"), point(lH, lV))
- sprite(finalChan + pLine).scriptInstanceList = []
- add(sprite(finalChan + pLine).scriptInstanceList, new(script("gallery_button"), 1))
- _movie.sendSprite(finalChan + pLine, #Initialize, finalChan + pLine, pLine)
- sprite(finalChan + pLine).ink = 36
- lV = lV + 20
- if pLine = 1 then
- pSp = finalChan + pLine
- pnum = pLine
- end if
- pLine = pLine + 1
- end if
- end repeat
- aPath = gMenuList[SectionNumber].ItemList[pnum].ItemPath
- sendSprite(pSp, #GenerateGallery, aPath)
- end
-